﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="TheGameClient.DlgLoadConnection" 
           Title="Load connection..." mc:Ignorable="d" Style="{StaticResource DefaultDialogStyle}">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
    	<StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" d:LayoutOverrides="VerticalAlignment">
    		<StackPanel Margin="0,0,0,5" Orientation="Horizontal">
    			<TextBlock Margin="0,0,5,0" VerticalAlignment="Center" Width="110" Text="Connection name:" TextWrapping="Wrap"/>
    			<ComboBox x:Name="cmbExistingConnections" Width="200" SelectionChanged="CmbExistingConnectionsSelectionChanged" Height="20" DisplayMemberPath="Name"/>
    		</StackPanel>
    	</StackPanel>
    	<StackPanel HorizontalAlignment="Right" Grid.RowSpan="2" Orientation="Horizontal" Margin="0,24,0,0">
    		<Button x:Name="OKButton" Content="OK" Click="OkButtonClick" Height="20" HorizontalAlignment="Right" Width="75" Margin="0,0,5,0" />
    		<Button x:Name="CancelButton" Content="Cancel" Click="CancelButtonClick" Height="20" Width="75" />
    	</StackPanel>
    </Grid>
</controls:ChildWindow>